	.text
	.align 2
	.globl main
	.type main, @function
main:
	addi sp, sp, -192
	sd ra, 184(sp)
	sd s0, 176(sp)
	addi s0, sp, 192
.main_label_entry:
# %op0 = alloca i32
	li t0, 28
	sub t1, fp, t0
	sd t1, -24(fp)
# store i32 1399, i32* %op0
	ld t1, -24(fp)
	addi t0, zero, 1399
	sw t0, 0(t1)
# %op1 = alloca i32
	li t0, 44
	sub t1, fp, t0
	sd t1, -40(fp)
# store i32 1, i32* %op1
	ld t1, -40(fp)
	addi t0, zero, 1
	sw t0, 0(t1)
# %op2 = alloca i32
	li t0, 60
	sub t1, fp, t0
	sd t1, -56(fp)
# store i32 1, i32* %op2
	ld t1, -56(fp)
	addi t0, zero, 1
	sw t0, 0(t1)
# %op3 = alloca i32
	li t0, 76
	sub t1, fp, t0
	sd t1, -72(fp)
# %op4 = call i32 @getint()
	jal getint
	sw a0, -80(fp)
# store i32 %op4, i32* %op3
	ld t1, -72(fp)
	lw t0, -80(fp)
	sw t0, 0(t1)
# br label %label5
	j .main_label5
.main_label5:
# %op6 = load i32, i32* %op1
	ld t0, -40(fp)
	lw t0, 0(t0)
	sw t0, -84(fp)
# %op7 = icmp slt i32 %op6, 99999999
	lw t0, -84(fp)
	li t1, 99999999
	slt t0,t0,t1
	sb t0, -85(fp)
# br i1 %op7, label %label8, label %label15
	lb t1, -85(fp)
	addi t0, zero, 0
	blt t0, t1, .main_label8
	j .main_label15
.main_label8:
# %op9 = load i32, i32* %op1
	ld t0, -40(fp)
	lw t0, 0(t0)
	sw t0, -92(fp)
# %op10 = load i32, i32* %op0
	ld t0, -24(fp)
	lw t0, 0(t0)
	sw t0, -96(fp)
# %op11 = add i32 %op9, %op10
	lw t0, -92(fp)
	lw t1, -96(fp)
	add t2, t0, t1
	sw t2, -100(fp)
# %op12 = load i32, i32* %op3
	ld t0, -72(fp)
	lw t0, 0(t0)
	sw t0, -104(fp)
# %op13 = srem i32 %op11, %op12
	lw t0, -100(fp)
	lw t1, -104(fp)
	remw t2, t0, t1
	sw t2, -108(fp)
# %op14 = icmp eq i32 %op13, 0
	lw t0, -108(fp)
	addi t1, zero, 0
	slt s11,t1,t0
	slt t0,t0,t1
	or t0,t0,s11
	addi s11,zero,1
	sub  t0,s11,t0
	sb t0, -109(fp)
# br i1 %op14, label %label18, label %label19
	lb t1, -109(fp)
	addi t0, zero, 0
	blt t0, t1, .main_label18
	j .main_label19
.main_label15:
# %op16 = load i32, i32* %op3
	ld t0, -72(fp)
	lw t0, 0(t0)
	sw t0, -116(fp)
# call void @putint(i32 %op16)
	lw a0, -116(fp)
	jal putint
# %op17 = load i32, i32* %op1
	ld t0, -40(fp)
	lw t0, 0(t0)
	sw t0, -120(fp)
# ret i32 %op17
	lw a0, -120(fp)
	j main_exit
.main_label18:
# store i32 411, i32* %op2
	ld t1, -56(fp)
	addi t0, zero, 411
	sw t0, 0(t1)
# br label %label26
	j .main_label26
.main_label19:
# %op20 = load i32, i32* %op1
	ld t0, -40(fp)
	lw t0, 0(t0)
	sw t0, -124(fp)
# %op21 = load i32, i32* %op0
	ld t0, -24(fp)
	lw t0, 0(t0)
	sw t0, -128(fp)
# %op22 = add i32 %op20, %op21
	lw t0, -124(fp)
	lw t1, -128(fp)
	add t2, t0, t1
	sw t2, -132(fp)
# %op23 = load i32, i32* %op3
	ld t0, -72(fp)
	lw t0, 0(t0)
	sw t0, -136(fp)
# %op24 = srem i32 %op22, %op23
	lw t0, -132(fp)
	lw t1, -136(fp)
	remw t2, t0, t1
	sw t2, -140(fp)
# %op25 = icmp eq i32 %op24, 1
	lw t0, -140(fp)
	addi t1, zero, 1
	slt s11,t1,t0
	slt t0,t0,t1
	or t0,t0,s11
	addi s11,zero,1
	sub  t0,s11,t0
	sb t0, -141(fp)
# br i1 %op25, label %label32, label %label33
	lb t1, -141(fp)
	addi t0, zero, 0
	blt t0, t1, .main_label32
	j .main_label33
.main_label26:
# %op27 = load i32, i32* %op1
	ld t0, -40(fp)
	lw t0, 0(t0)
	sw t0, -148(fp)
# %op28 = add i32 %op27, 1
	lw t0, -148(fp)
	addi t1, zero, 1
	add t2, t0, t1
	sw t2, -152(fp)
# %op29 = load i32, i32* %op2
	ld t0, -56(fp)
	lw t0, 0(t0)
	sw t0, -156(fp)
# %op30 = srem i32 %op29, 3
	lw t0, -156(fp)
	addi t1, zero, 3
	remw t2, t0, t1
	sw t2, -160(fp)
# %op31 = add i32 %op28, %op30
	lw t0, -152(fp)
	lw t1, -160(fp)
	add t2, t0, t1
	sw t2, -164(fp)
# store i32 %op31, i32* %op1
	ld t1, -40(fp)
	lw t0, -164(fp)
	sw t0, 0(t1)
# br label %label5
	j .main_label5
.main_label32:
# store i32 101, i32* %op2
	ld t1, -56(fp)
	addi t0, zero, 101
	sw t0, 0(t1)
# br label %label40
	j .main_label40
.main_label33:
# %op34 = load i32, i32* %op1
	ld t0, -40(fp)
	lw t0, 0(t0)
	sw t0, -168(fp)
# %op35 = load i32, i32* %op0
	ld t0, -24(fp)
	lw t0, 0(t0)
	sw t0, -172(fp)
# %op36 = add i32 %op34, %op35
	lw t0, -168(fp)
	lw t1, -172(fp)
	add t2, t0, t1
	sw t2, -176(fp)
# %op37 = load i32, i32* %op3
	ld t0, -72(fp)
	lw t0, 0(t0)
	sw t0, -180(fp)
# %op38 = srem i32 %op36, %op37
	lw t0, -176(fp)
	lw t1, -180(fp)
	remw t2, t0, t1
	sw t2, -184(fp)
# %op39 = icmp eq i32 %op38, 3
	lw t0, -184(fp)
	addi t1, zero, 3
	slt s11,t1,t0
	slt t0,t0,t1
	or t0,t0,s11
	addi s11,zero,1
	sub  t0,s11,t0
	sb t0, -185(fp)
# br i1 %op39, label %label41, label %label42
	lb t1, -185(fp)
	addi t0, zero, 0
	blt t0, t1, .main_label41
	j .main_label42
.main_label40:
# br label %label26
	j .main_label26
.main_label41:
# store i32 99, i32* %op2
	ld t1, -56(fp)
	addi t0, zero, 99
	sw t0, 0(t1)
# br label %label42
	j .main_label42
.main_label42:
# br label %label40
	j .main_label40
main_exit:
	# epilog
	ld ra, 184(sp)
	ld s0, 176(sp)
	addi sp, sp, 192
	jr ra
